package com.qf.weekexam.dao;

import com.qf.weekexam.entity.User;
import com.qf.weekexam.vo.HelperPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    public List<User> getAllUsers();

    User getOneUserByName(@Param("username") String username);

    void insertUser(User user);

    User getOneUserByNameAndPassword(@Param("username") String username, @Param("password") String password);

    List<User> getAllUserByLimit(HelperPageVo helperPageVo);

    void delUserById(@Param("ids") Integer[] ids);

    User getUserById(@Param("id") Integer id);

    void updateUserById(User user);

    void insertUserList(@Param("users") List<User> userList);

}
